package io.renren.dao;

import io.renren.entity.CourseEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 
 * 
 * @author Mark
 * @email sunlightcs@gmail.com
 * @date 2019-10-25 09:44:11
 */
@Mapper
public interface CourseDao extends BaseMapper<CourseEntity> {
	List<CourseEntity> getCourse();
	List<CourseEntity> searchCourse(@Param("keyword") String keyword,@Param("userid") Integer userid);
	List<CourseEntity> searchTeacherCourse(@Param("keyword") String keyword,@Param("userid") Integer userid);
	List<CourseEntity> getCourseList(@Param("userid")Integer userid);
    List<CourseEntity> getMyCourse(@Param("userid")Integer userid);
}
